import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Role.AdminList',
    method: 'post',
    data,
  })
}

export function addAdmin(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Role.CreateAdmin',
    method: 'post',
    data,
  })
}

export function delAdmin(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Role.CancelAdmin',
    method: 'post',
    data,
  })
}

export function setAdmin(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Role.SetAdmin',
    method: 'post',
    data,
  })
}
